import 'package:get/get.dart';
import 'package:ball_lion/entity/team/zq_team_lineup_entity.dart';
import 'package:ball_lion/server/api/soccer_api.dart';

class SoccerTeamLineupLogic extends GetxController {
  List itemList = ["主教练", "前锋", "中场", "后场", "门将"];
  bool isLoading = true;
  List<SoccerTeamLineupEntity> data = [];

  Future requestData(int teamId) async {
    data = await SoccerApi.getSoccerTeamLineup(teamId);
    isLoading = false;
    update();
  }
}
